num=randint(1,30)
print(num)
while true:
    guess=int(input("请输入一个数字："))
    if (guess>num):
        print("太大了")
    elif(guess<num):
        print("太小了")
    else:
        print("猜对了")
        break #结束循环

for i in range(1,10):
    for j in range(1,10):
        print("%d*%d=%d"%(j,i,j*i),end="\t")
        print()
        print("------")

for i in range(100,1000):
    ge=i%10
    shi=i//10%10
    bai=i//100
    if i==ge**3+shi**3+bai**3:
        print(i)
        print("------")

for i in range(100,1000):
    ge=i%10
    shi=i//10%10
    bai=i//100
    if i==ge**3+shi**3+bai**3:
        print(i)
    print("------")
def isprime(n):
    for i in range(2,n):
        if n%i==0:
            return False
        return Ture
    for i in range(1,100):
        if isprime(i):
            print(i)
print("------")

def isprime(n):
    for i in range(2,n):
        if n%i==0:
            return False
        return Ture
    for i in range(1,100):
        if isprime(i):
            print(i)
print("------")

def isprime(n):
    for i in range(2,n):
        if n%i==0:
            return false
        return ture
    for i in range(1,100):
        if isprime(i):
            print(i)
print("------")

def isprime(n):
    for i in range(2,n):
        if n%i==0:
            return false
        return ture
    for i in range(1,100):
        if isprime(i):
            print(i)



for i in range(1,101):
    sum=0
    for j in range(1,i):
        if i%j==0:
            sum+=j
    if sum==i:
        print(i,end="\t")

for i in range(1,101):
        sum=0
        for j in range(1,i):
            if i%j==0:
                sum+=j
        if sum==i:
            print(i,end="\t")

for i in range(1,101):
    sum=0
    for j in range(1,i):
        if i%j==0:
            sum+=j
    if sum==i:
        print(i,end="\t")

for i in range(1,101):
    sum=0
    for j in range(1,i):
        if i%j==0:
            sum+=j
    if sum==i:
        print(i,end="\t")

def fib(n):
    if n<=2:
        return 1
    return fib(n-1)+fib(n-2)
for i in range(1,39):
    print(fib(i))

def fib(n):
    if n<=2:
        return 1
    return fib(n-1)+fib(n-2)
for i in range(1,39):
    print(fib(i))

for i in range(1,10):
    print(""*(10-i)+"*"*(i+i-1))
    for j in range(10,1,-1):
        print(""*(10-j)+"*"*(j+j-1))

for i in range(1,10):
    print(""*(10-i)+"*"*(i+i-1))
for j in range(10,1,-1):
    print(""*(10-j)+"*"*(j+j-1))








